package com.java.multipledatasource.thread;

/**
 * @author hu
 * @version 1.0
 * @date 2021/1/19 0019 上午 8:17
 * @description
 */
public class ThreadStart {
     static class ThreadExtend extends  Thread {
        @Override
        public void run() {
            System.out.println("extends");
        }
    }

    static class ThreadRunnable implements  Runnable{

        @Override
        public void run() {
            System.out.println("Runnable");
        }
    }

    public static void main(String[] args) {
        ThreadExtend threadExtend = new ThreadExtend();
        threadExtend.start();
         new Thread(new ThreadRunnable()).start();

    }
}

